<?php
$id = $_REQUEST["id"];
$page = $_REQUEST["page"];
$level = $_POST["level"];
//echo $level;
$value = 3;
include("include/db_connect.php");


if($level == "member") $value = 0;
else if($level == "provider") $value = 1;
else if($level == "admin") $value = 2;
if($value!=3) mysql_query("Update dc_user Set level=".$value." Where UID='".$id."'");
header("Location:userList.php?page=$page");
?>
